<p class="pageTitle"><%= l(:common, :editing) + " - " + link_to(@artist.fullname, admin_artist_url(@artist)) + ' - ' + l(:common, :description) %></p>

<%= error_messages_for :artist_description %>

<% tabnav :artist do %>
<p><%= l(:help, 'new artist', :req_description) %></p>
<strong>Current Descriptions:</strong>
<% if @artist.artist_descriptions.length > 0 %>
  <p id="click">(Click a language name to see and edit the description in that language)</p>
  <p id="noDesc" style="display:none;">No descriptions added yet.</p>
<% else %>
  <p id="click" style="display : none;">(Click a language name to see and edit the description in that language)</p>
  <p id="noDesc">No descriptions added yet.</p>
<% end %>

<%= render :partial => "admin/artist_descriptions/edit_javascript" %>

<table id='artist_description_table'>
<%= render :partial => "admin/artist_descriptions/edit_description", :collection => @artist.artist_descriptions %>
</table>

<hr />

<strong><%= ArtistDescription.l_attr('add')%></strong>
  <div id='add_description'>
    <div id="artist_description_new_errors"></div>
  
  <% remote_form_for(ArtistDescription.new, :url => {:controller => 'admin/artists', :action => :add_description}) do |f| %>
  <%= render :partial => 'admin/artist_descriptions/new_description', :locals => {:artist => @artist, :form => f} %>
  </div>
<% end %>

<% end %>